home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 4,401 to 4,500
/
aol-file-protocol-4400-4401-to-4500.zip
/
AOLDLs
/
PDA-Newton Development
/
NW_ Newton Dev. (Unlock Code)
/
TimeLock.sea
/
TimeLock
/
TimeLock-code
< prev
next >
Wrap
Text File
|
1983-05-01
|
3KB
|
73 lines
0020 LET appSpec={goto:'endprogram,title:"TimeLock"}
0030 window app,appSpec,"APP"
0040 show app
0050 widgetdef Layout_0:={contactInfo:{widgetType:"text",order:0,B
viewClass:81,viewBounds:{left:28,top:165,right:312,bottom:2B
58},viewFlags:47616,viewFormat:143697,viewJustify:0,viewLinB
eSpacing:16,text:"Replace this with your contact info.",vieB
wFont:{family:'handwriting,face:0,size:12},tabs:[20,40,60,8B
0,120,140,160,180]},Widget_1:{widgetType:"textButton",orderB
:1,Goto:'target,viewBounds:{top:349,left:19,bottom:384,righB
t:114},viewFlags:514,text:"Register",viewFont:{family:'espyB
,face:1,size:12},viewFormat:67109456}}
0060 window wlist,Layout_0
0065 show wlist
0110 REM program template
0115 open flex1,"First1",time
0116 if fstat=1 then
0120 create flex1,"First1",time
0140 LET fkey:=Numberstr(Time())
0150 LET frecord1:={}
0160 LET frecord1.time=fkey
0170 put flex1,frecord1
0180 LET zz=Stringtonumber(frecord1.time)
0190 else
0200 open flex1,"first1",time
0210 get flex1,FetchedData,fkey
0220 if fstat=1 then stop
0230 LET zz=Stringtonumber(Fetcheddata.time)
0240 end if
0250 LET LL:=Floor(zz)
0260 LET D=43200
0270 if Floor((Time()-LL))>=D then
0280 Notify("Demo Program expired.","" & Layout_0.contactInfo.text)
0285 goto endprogram //
0286 goto working //
0287 target: rem
0290 hide
0300 cls
0305 widgetdef Layout_input:={Widget_0:{widgetType:"title",order:B
0,viewBounds:{left:56,top:85,right:227,bottom:120},viewJustB
ify:0,viewFont:{family:'espy,face:1,size:12},viewFlags:1,teB
xt:"Input access code now!",viewFormat:0},trialcode:{widgetB
Type:"numberPicker",order:1,viewBounds:{top:156,left:54,botB
tom:185,right:253},viewFlags:0,minValue:0,maxValue:9999999,B
value:0,showLeadingZeros:TRUE},Inputbtn:{widgetType:"textBuB
tton",order:2,gosub:'input,viewBounds:{left:146,top:235,rigB
ht:233,bottom:268},viewFlags:514,text:"Input",viewFont:{famB
ily:'espy,face:1,size:12},viewFormat:67240528}}
0307 window wlasta,Layout_input
0310 show wlasta
0315 wait -1
0320 input: rem
0325 LET p=0
0327 LET x=getglobals().userconfiguration.name
0330 LET B=Strlen(x)
0340 for i=0 to B-1
0350 LET p=p+ord(x[i])
0360 next i
0370 LET t=p div 3
0400 if Layout_input.trialcode.value=t then
0410 Notify("Registered! Thank You!","")
0415 goto working //
0420 else
0430 Notify("Wrong Code","")
0435 goto endprogram //
0460 end if
0465 end if
0560 working: rem
0570 wait -1
9000 endProgram: rem
9010 hide
9020 stop
*